<script setup>
import {onMounted, ref, version} from 'vue'

//响应式数据对象
const timer = ref()

onMounted(() => {
  setInterval(() => {
    let d = new Date()
    timer.value = d.toLocaleTimeString()
  }, 1000)
})

</script>

<template>
  <h3>hello world 中文效果</h3>
  <p>{{ version }}</p>
  <p>{{ timer }}</p>
</template>

<style scoped>

</style>
